package org.millioncall.yueyoga.common;

//created by lisj on 2014-03-04
//全局变量类
public class GlobalConstants {
	public static final String APP_BASE = "yueyogaAdmin";// 本网站根目录（应用名）
	public static final String APP_WEB_NAME = "樾瑜伽会员管理系统";// 项目名称（中文名称）
	public static final String APP_ORGANIZATION = "禅一瑜伽";
	public static final String APP_POWEREDBY = "yueyoga";
	public static final String APP_VERSION = "1.0.0";// 网站当前版本号
	public static final String APP_DOMAIN = "http://www.juzihui.net";// 域名

	// 用于判断用户登录的session key
	public static final String LOGIN_USER_KEY = "millioncallapp_login_user";// userkey
	public static final String MAIN_LOCK_KEY = "millioncallapp_main_lock";// 锁定主页key
	public static final String HALL_CODE_KEY = "hall_Code";// 会馆编码

	// 视图路径
	public static final String APP_VIEW_PATH = "app/admin";// 视图基路径，不包含主题
	// 公共静态资源路径
	public static final String ASSETS_PATH = "assets/public";
	// 项目静态资源路径
	public static final String RESOURCE_PATH = "app/admin/resources";
	// pad静态资源路径
	public static final String PAD_RESOURCE_PATH = "app/padadmin/resources";

	public static final String ADMIN_LOGIN_URL = "yueyogaAdmin/loginAction/login.do";// 后台登录入口
	public static final String FRONT_LOGIN_URL = "/member/login.jhtml";// 前台登录入口

	// 项目一旦启动，不可改变。数据库文件名将用此密码进行加密
	public static final String UPLOAD_FILENAME_ENCRYPT_PASSWORD = "yueyoga";// 上传文件名密码，不可改变

	public static final String DATABASE_BACKUP_PATH = "backup";// 数据库备份文件基路径
	public static final String DATABASE_DBNAME = "yueyoga";// 数据库名称
	public static final String JSESSION_COOKIE = "JSESSIONID";

	// 存储在request中的异常信息
	public static final String ERROR_TITLE_KEY = "_global_error_title";
	public static final String ERROR_MSG_KEY = "_global_error_msg";
	public static final String ERROR_EXCEPTION_CONTENT_KEY = "_global_exception_content";
	public static final String ERROR_VIEW_NAME_KEY = "error";

	// 用于aviator表达式的model key
	public static final String RESULT_ROW_MODEL_KEY = "result_row_model_key";
}
